/*
 * 文件名：BillingMapper.java
 * 版权：Copyright by www.huawei.com
 * 描述：
 * 修改人：ZhangBo
 * 修改时间：2012-5-3
 * 跟踪单号：
 * 修改单号：
 * 修改内容：
 */

package com.chinasoftosg.sicap.pojo.mapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.chinasoftosg.sicap.pojo.Billing;

public class BillingMapper implements RowMapper<Billing>
{
    public Billing mapRow(ResultSet rs, int rowNum) throws SQLException
    {
        Billing billing = new Billing();
        billing.setBillingId(rs.getInt("BILLING_ID"));
        billing.setSourNumber(rs.getString("SOUR_NUMBER"));
        billing.setDestNumber(rs.getString("DEST_NUMBER"));
        billing.setStatus(rs.getInt("STATUS"));
        billing.setResponseCode(rs.getString("RESPONSE_CODE"));
        billing.setBodyMessage(rs.getString("BODY_MESSAGE"));
        billing.setBillingDate(rs.getString("BILLING_DATE"));
        return billing;
    }
    
}
